package org.cebu.tourism.maps.server;

import org.cebu.tourism.maps.client.MapService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
/*
 * Implementation Servlet for /tourism/maps 
 */
@SuppressWarnings("serial")
public class MapServiceImpl extends RemoteServiceServlet implements MapService{

	private String searchId;
    /*
     * @author: jdelapena 04/09/12 
     * @function Name: doGet
     * @description: overrides HttpServlet GET function
     *               get requested location and record to table
     */
	public void doGet(HttpServletRequest request, HttpServletResponse res)
	{
		searchId = request.getParameter("searchId");
		//do something here
		//TODO:  transfer map implementations in servlet
	}
	
    /*
     * @author: jdelapena 04/09/12 
     * @function Name: getRequestId
     * @description: map service
     */
	public String getRequestId() {
		System.out.println("Request Id: " + searchId);
		return searchId;
	}

}
